#pragma once
#include <iostream>

struct Point {
    Point() = default;
    Point(const float& x, const float& y, const float& z,Point* next = nullptr) : m_x(x), m_y(y), m_z(z), m_next(next){};
    float m_x{ 0.0f };
    float m_y{ 0.0f };
    float m_z{ 0.0f };
    Point* m_next{ nullptr };

    double norm() {
        return sqrt(m_x * m_x + m_y * m_y + m_z * m_z);
    }
    float operator[](int i);
    float operator[](int i) const;
    bool  operator==(const Point& r) const;
};



